//
//  WeatherHeaderView.swift
//  MyWeatherApp
//
//  Created by Shengbing Li (QXU7859) on 2021/2/27.
//  Copyright © 2021 shanghai. All rights reserved.
//

import UIKit

class WeatherHeaderView: UIView {
    @IBOutlet weak var cityNameLabel: UILabel!
    @IBOutlet weak var rainLabel: UILabel!
    @IBOutlet weak var rainImageView: UIImageView!
    
    class func instantiateFromNib() -> WeatherHeaderView {
        return Bundle.main.loadNibNamed("WeatherHeaderView", owner: nil, options: nil)?.first as! WeatherHeaderView
    }
    
    func setConfiguration(cityName: String, rain: String, rainImage: UIImage) {
        self.cityNameLabel.text = cityName
        self.rainLabel.text = rain
        //self.rainImageView.image = rainImage
    }
}
